package com.sky.service;

import com.github.pagehelper.Page;
import com.sky.anno.AutoFillAnno;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.enumeration.OperationType;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import org.springframework.stereotype.Service;

import java.util.List;

public interface Dishservice {
    @AutoFillAnno(OperationType.INSERT)
    int insertdish(DishDTO dto);

    Page<Dish> selectwithpage(DishPageQueryDTO queryDTO);

    String deletebyids(List<Long> ids);

    DishDTO selectDish(Long id);

    @AutoFillAnno(OperationType.UPDATE)
    Boolean updatedish(DishDTO dto);
    List<DishVO> listWithFlavor(Dish dish);
}
